var app = new Vue({
    el: "#player",
    data: {
        message: 'Hello Vue!',
        query: 'loser',
        musicList: [],
        musicUrl:""
    },
    methods: {
        search: function () {
            var that = this
            axios.get("https://autumnfish.cn/search?keywords=" + this.query)
                .then(function (res) {
                    console.log(res)
                    that.musicList = res.data.result.songs;
                }, function (err) {
                })
        },
        temp: function () {
            alert("函数")
        },
        playMusic: function (mid) {
            var that=this
            axios.get("https://autumnfish.cn/song/url?id=" + mid)
                .then(function (res) {
                   that.musicUrl= res.data.data[0].url
                }, function () {
                })
        }


    }


})